﻿<controls:ChildWindow x:Class="ScrumBoard.EditTask"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="EditTask">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

    <Grid Name="grid1" Margin="20">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="15"/>
        <ColumnDefinition Width="*"/>
      </Grid.ColumnDefinitions>
      
      <Grid.RowDefinitions>
        <RowDefinition Height="*" />
        <RowDefinition Height="30" />
        <RowDefinition Height="30" />
      </Grid.RowDefinitions>
      
      <TextBlock Text="Task Description:" HorizontalAlignment="Right" />
      <TextBlock Text="Team Member:" Grid.Row="1" HorizontalAlignment="Right" />
      <TextBlock Text="Estimated Time:" Grid.Row="3" HorizontalAlignment="Right" />
      
      <TextBox Text="{Binding Name, Mode=TwoWay, UpdateSourceTrigger=Explicit}" Grid.Column="2" Margin="0,0,0,5" AcceptsReturn="True" />
      <TextBox Text="{Binding TeamMember, Mode=TwoWay, UpdateSourceTrigger=Explicit}"  Grid.Column="2" Grid.Row="1"  Margin="0,0,0,5"/>
      <TextBox Text="{Binding EstimatedTime, Mode=TwoWay, UpdateSourceTrigger=Explicit}"   Grid.Column="2" Grid.Row="2"  Margin="0,0,0,5"/>
    </Grid>

    <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />

  </Grid>
</controls:ChildWindow>